/*****************************************************************************
* nettypes.h
*
* portions Copyright (c) 2001 by Cognizant Pty Ltd.
*
* The authors hereby grant permission to use, copy, modify, distribute,
* and license this software and its documentation for any purpose, provided
* that existing copyright notices are retained in all copies and that this
* notice and the following disclaimer are included verbatim in any 
* distributions. No written agreement, license, or royalty fee is required
* for any of the authorized uses.
*
* THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
* IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
* REVISION HISTORY (please don't use tabs!)
*
*(yyyy-mm-dd)
* 2001-06-08 Robert Dickenson <odin@pnc.com.au>, Cognizant Pty Ltd.
*            Original file.
*
******************************************************************************
*/
#ifndef _NETTYPES_H_
#define _NETTYPES_H_

#ifdef ISS_OS
#include <sys/types.h>
#endif

/* Type definitions for BSD code. */
typedef unsigned long n_long;			// long as received from the net
typedef unsigned short n_short;
typedef unsigned long n_time;

typedef unsigned long u_int32_t;
typedef unsigned short u_int16_t;
#ifndef ISS_OS
typedef unsigned long u_long;
typedef unsigned short u_short;
#endif
//typedef unsigned short u_int;
//#define u_int unsigned short
#define u_int unsigned int


/* Type definitions for ka9q code. */
typedef long int32;
typedef short int16;
#ifndef ISS_OS
typedef unsigned char u_char;
#endif
typedef unsigned long u_int32;
typedef unsigned short u_int16;



#endif // _NETTYPES_H_
